package test.entity;

/**
 * @author zhenjie.Ji
 * @description 上传车端密钥请求响应
 * @date 2025/2/21 9:14
 */
public class UploadVehicleKeyResponse {
    private String macAlg;
    private String mac;

    public UploadVehicleKeyResponse(String macAlg, String mac) {
        this.macAlg = macAlg;
        this.mac = mac;
    }

    public String getMacAlg() {
        return macAlg;
    }

    public void setMacAlg(String macAlg) {
        this.macAlg = macAlg;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    @Override
    public String toString() {
        // 手动构建 JSON 格式字符串
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        sb.append("\"macAlg\": \"").append(macAlg).append("\", ");
        sb.append("\"mac\": \"").append(mac).append("\"");
        sb.append("}");
        return sb.toString();
    }
}
